<?php

namespace D3hdv\HdvBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * HdvVente
 *
 * @ORM\Table()
 * @ORM\Entity(repositoryClass="D3hdv\HdvBundle\Entity\HdvVenteRepository")
 */
class HdvNotification
{
    /**
     * @var integer
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;


    /**
     * @ORM\Column(type="string", length=255)
     */
    private $titre;

    /**
     * @ORM\Column(type="string", length=255)
     */
    private $message;
 
   /**
     * @ORM\Column(name="lu",type="boolean", nullable=true, options={"default" = 0})
     */
    protected $lu;


    /**
     * @var datetime $dateDebut
     *
     * @ORM\Column(name="date", type="datetime")
     */
    private $date;

    public function __construct()
    {
	$this->lu = false;
	$this->date = new \Datetime(); 
    }
  	

    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set message
     *
     * @param integer $message
     * @return HdvNotification
     */
    public function setMessage($message)
    {
        $this->message = $message;
    
        return $this;
    }

    /**
     * Get message
     *
     * @return integer 
     */
    public function getMessage()
    {
        return $this->message;
    }

    /**
     * Set lu
     *
     * @param boolean $lu
     * @return HdvNotification
     */
    public function setLu($lu)
    {
        $this->lu = $lu;
    
        return $this;
    }

    /**
     * Get lu
     *
     * @return boolean 
     */
    public function getLu()
    {
        return $this->lu;
    }

    /**
     * Set date
     *
     * @param \DateTime $date
     * @return HdvNotification
     */
    public function setDate($date)
    {
        $this->date = $date;
    
        return $this;
    }

    /**
     * Get date
     *
     * @return \DateTime 
     */
    public function getDate()
    {
        return $this->date;
    }

    /**
     * Set titre
     *
     * @param string $titre
     * @return HdvNotification
     */
    public function setTitre($titre)
    {
        $this->titre = $titre;
    
        return $this;
    }

    /**
     * Get titre
     *
     * @return string 
     */
    public function getTitre()
    {
        return $this->titre;
    }
}
